﻿using System.Collections.Generic;
using System.Linq;
using WebApplication1.Models;

namespace Application
{
    public class articleEf : Iarticle

    {
        //private readonly Context context;

        //public articleEf(Context context)
        //{
        //    this.context = context;
        //}

        public List<article> GetAll()
        {
            using (var context = new Context())
            {
                var persons = context.articles;

                return persons.ToList();
            }
        }
    }
}